package com.ljf.sso;

import java.io.Serializable;

/**
 * 说明：SSO 单点登录配置
 *
 * @Auther: lijinfeng
 * @Date: 2024/4/24
 */
public class SsoServerConfig implements Serializable {

    private static final long serialVersionUID = 4251100354082602564L;


    /**
     * 配置sso功能是否开启
     */
    public boolean open = false;

    /**
     * 配置 Server端开启的单点登录授权地址
     */
    public String authUrl = "/sso/auth";

    /**
     * 有效期 (单位: 秒)
     */
    public long timeout = 60 * 30;

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public String getAuthUrl() {
        return authUrl;
    }

    public void setAuthUrl(String authUrl) {
        this.authUrl = authUrl;
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }

}
